#ifndef DISPLAYITEM_H
#define DISPLAYITEM_H

#include <QWidget>
#include <QUrl>

namespace Haha
{

class DisplayItemPrivate;
class DisplayItem : public QWidget
{
    Q_OBJECT
public:
    explicit DisplayItem(const QUrl& url, QWidget *parent = 0);
    ~DisplayItem();

    QUrl url() const;

    void setRemoteUrl(const QUrl& url);
    QUrl remoteUrl() const;

public slots:
    void scan();
    void locate();

protected:
    QSize sizeHint() const;
    void resizeEvent(QResizeEvent* e);

private:
    DisplayItemPrivate* d_ptr;
    Q_DISABLE_COPY(DisplayItem)
};

}
#endif // DISPLAYITEM_H
